package com.a2v2.online.store.database.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="notification_status")
public class NotificationStatus extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8200400533817064718L;
	
	/**
	 * 
	 */
	@ManyToOne(targetEntity = NotificationAction.class)
	@JoinColumn(name="action_id")
	private NotificationAction notificationAction;
	
	/**
	 * 
	 */
	@Column(name="error_code")
	private String errorCode;
	
	/**
	 * 
	 */
	@Column(name="send_status")
	private String sendStatus;

	public NotificationAction getNotificationAction() {
		return notificationAction;
	}

	public void setNotificationAction(NotificationAction notificationAction) {
		this.notificationAction = notificationAction;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(String sendStatus) {
		this.sendStatus = sendStatus;
	}
}
